<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
		/*正三角*/
			for(var i=0;i<5;i++){
				for(var j=0;j<i+1;j++){
					document.write("*");
				}
				document.write("<br />");
			}
		/*倒三角*/
			for(i=0;i<5;i++){
				for(j=0;j<5-i;j++){
					document.write("*");
				}
				document.write("<br />");
			}
		/*乘法表*/
			for(i=1;i<=9;i++){
				for(j=1;j<=i;j++){
					document.write( "<span>"+j+"*"+i  +"="+i*j +"&nbsp;&nbsp;&nbsp"+"</ span>");
				}
				document.write("<br />");
			}
		</script>
		<!--<style type="text/css">
			span{
				display:inline-block;
				width: 80px;
			    }
		</style>-->
	</head>
	<body>
	</body>
</html>
